package service

type AdminUser struct {
}

func (a *AdminUser) InitAdminUser() (err error) {
	checkErr := a.CheckAdminUser()
	if checkErr != nil {
		_, err = SendCmd("useradd crow")
	}
	return nil
}

func (a *AdminUser) CheckAdminUser() (err error) {
	//创建目录
	_, err = SendCmd("su - crow")
	if err != nil {
		return err
	}
	return nil
}
